import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import '@/utils/request'
import '@/styles/index.scss'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)

Vue.config.productionTip = false

// 定义一个全局的时间过滤器
import moment from "moment"   //
Vue.filter("timeFormat",(date,pattern="YYYY-MM-DD HH:mm:ss")=>{
  return moment(date).format(pattern)
})
new Vue({ 
  router,
  store,
  render: h => h(App)
}).$mount('#app')
